Socket function mainly realizes setting up and initializing service unit socket , initializing service unit and service unit serial and so on . bind funcion primarily binds local address and port for the socket . listen function is to evaluate the max length of server ’ s listening queue . connect function and accept function set aside rate ahead , infrom user ’ s request of establishing virtual circuit to suna , cooperate with suna to establish the connection between client and server , return the result . we make use of three handshake with data protocol and virtual circuit mode , in this way , when we translate data , we can look up communication course according to virtual circuit number , at the same time , there aren ’ t source ip address and port , end ip address and port in the head of data package , the speed of translating data advances in a certain extent . send function and recv function is to send data collaborating with suna , and copy data from the receiving queue of socket to user ’ s buffer . close function cooperate Socket ( )函數(shù)實(shí)現(xiàn)創(chuàng)建、初始化服務(wù)元套接字,初始化服務(wù)元及服務(wù)元序列等。 bind ( )函數(shù)為套接字綁定本地地址和端口號。 connect ( )和accept ( )函數(shù)主要是根據(jù)用戶要求預(yù)留帶寬,將用戶的建立虛電路請求轉(zhuǎn)達(dá)給服務(wù)元網(wǎng)絡(luò)體系,協(xié)作服務(wù)元網(wǎng)絡(luò)體系采用捎帶數(shù)據(jù)的三次握手協(xié)議建立虛電路,并告訴用戶處理結(jié)果,一方面,捎帶數(shù)據(jù)的三次握手協(xié)議在一定程度上可提高數(shù)據(jù)傳輸速度;另一方面,采用虛電路方式,使得數(shù)據(jù)通信可直接根據(jù)虛電路號查找相應(yīng)的通信進(jìn)程,而且數(shù)據(jù)包的包頭中省去了源ip地址、端口號和目的ip地址、端口號,提高了數(shù)據(jù)傳輸速率。
circuit: n. 1.(某一范圍的)周邊一圈;巡回,周游;巡回路線[ ...number: n. 1.數(shù);數(shù)字;〔pl.〕算術(shù)。 2.(汽車等的)號 ...circuit number of outgoing line: 出線回路數(shù)even number circuit: 偶數(shù)電路number check circuit: 號碼核對電路subscribers number display circuit: 用戶顯號電路virtual circuit number: 虛電路號a number of: 大量,許多; 若干,許多; 若干的;許多的; 一些,許多; 一些,許多in number: 總共, 在數(shù)字上no number: 數(shù)字號碼; 無號碼no=number: 第號not number: 音符號number: n. 1.數(shù);數(shù)字;〔pl.〕算術(shù)。 2.(汽車等的)號碼;第…,第…卷,第…期〔通常略作 No. (復(fù)數(shù) Nos.),用于數(shù)字之前〕。 3.伙伴;號子,囚犯。 4.數(shù)目;〔pl.〕大批,數(shù)量上的優(yōu)勢,許多,若干。 5.【樂、韻】音律,韻律;〔pl.〕【音樂】樂譜,調(diào)子,節(jié)奏,拍子;〔pl.〕【詩】詩,韻文;【語法】數(shù)。 6.〔口語〕(從多數(shù)當(dāng)中挑選出來的)人,物。 7.一群人,一幫人。 cardinal [ordinal] numbers 基[序]數(shù)。 an even [odd] number 偶[奇]數(shù)。 a whole [an integral] number 整數(shù)。 the acid number 【化學(xué)】酸值。 the atomic number 原子序數(shù)。 a high [low] number 大[小]數(shù)。 the science of numbers 算術(shù)。 a telephone number 電話號碼。 the number of a car 車號。 a dead number 空號。 the April number (雜志的)四月號。 Nos. 1-5 第一號到第五號。 No. 9 (pill) 〔美軍〕百寶丹,清導(dǎo)丸,通便丸。 He is not of our number. 他可不是我們中的一分子。 He is among the number of the dead. 他也在死亡之列。 a number of books 許多書。 a great [large] number of people 很多很多的人。 the singular [plural] number 單[復(fù)]數(shù)。 a number of 若干;〔口語〕=numbers of 許多的。 back number 過了期的一期報(bào)刊雜志;過時(shí)的人或事物;落后、頑固、反動(dòng)的人物。 by number= in numbers. get [have] sb.'s number 〔美俚〕對某人的性格、動(dòng)機(jī)等作確實(shí)的估價(jià)。 have sb.'s number on it 〔美俚〕注定是某人死亡的原因。 in number 總共;用數(shù)字表示,在數(shù)字上。 in numbers (雜志等)分為數(shù)冊,分?jǐn)?shù)次(The story is issued in numbers. 那部小說是分冊出版的)。 in round numbers 以整數(shù)[約數(shù)]表示;約莫,大概;總而言之。 lose the number of one's mess 〔英海軍行話〕死,“報(bào)銷”。 make up by numbers 以多為勝。 number one 1. 頭號(的),第一流(的)。 2. 〔口語〕自己;自己的利益(take care of [look after] number one 替自己打算)。 3. 〔口語〕小便。 numbers pool 猜數(shù)字小賭博。 One's number is up. 〔俚語〕某人劫數(shù)[死期]已到。 one's number two 副手,副職,接班人。 one's opposite number 對等的人[物]。 out of [without] number(s) 無數(shù)的。 the numbers =numbers pool. There are numbers who .... …的人很多。 to the number of …多到。 win by (force of) numbers 靠人多得勝。 without [beyond] number=out of number. vt. 1.給…編號[記號數(shù),加號碼]。 2.達(dá)…之?dāng)?shù),共計(jì)…,(人口)有…。 3.算入…(數(shù))內(nèi);認(rèn)為 (among in with)。 4.〔主用被動(dòng)形〕已有限定,有限;〔古,雅〕數(shù),計(jì)算。 5.活了…歲,足…歲。 The guests number 20. 客人有二十位。 His days are numbered. 他(在世)的日子不多了。 vi. 算在…數(shù)內(nèi);計(jì);報(bào)數(shù)。 number off 〔上操〕報(bào)數(shù);〔口令〕號碼! n. -er 編號人;計(jì)數(shù)員。 t-number: 值光圈t-number t: 值光圈the number of: 什么的數(shù)量; 數(shù)量to number: number]周轉(zhuǎn)率; 周轉(zhuǎn)率,轉(zhuǎn)換數(shù),酶變率to the number of: 達(dá)到...的數(shù)目; 合計(jì)數(shù)為…; 為數(shù)達(dá)number number number number number: 號碼and circuit: 及電路; 與電路; 與門電路and not circuit: 與非邏輯電路and or circuit: 與或 電路; 與或電路and to and circuit: 與與電路and-circuit: “與”門電路and-not circuit: 與非電路; 與-非電路